package org.paradac;

import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;


public class Node<T> implements Runnable {
	
	T data;
	Node<T> parent;
	List<T> children;
	int level = 0;
	AtomicInteger processedChildrenCount = new AtomicInteger(0);
	Function<Node<T>> f;
	
	
	@Override
  public String toString() {
	  return data.toString();
  }


	@Override
  public void run() {
		f.apply(this);
  }
}
